package com.fce.boc.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QueueConfig {
    public static String coreDirectQueue="coreDirectQueue";

    public static String accumulatedDirectQueue="accumulatedDirectQueue";

    /**
     * 队列 起名：callCore
     */
    @Bean
    public static Queue callCore() {
        return new Queue(coreDirectQueue,true);
    }

    /**
     * 队列 起名：accumulated
     */
    @Bean
    public static Queue accumulated() {
        return new Queue(accumulatedDirectQueue,true);
    }
}
